-- GENERATED SPELL FOR [Thane Ufrang the Mighty] --


function spell0_29919(pUnit, Event) --@Mortal Strike,n/a--
pUnit:FullCastSpellOnTarget(39171,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_29919', 5341, 1)
end

function spell1_29919(pUnit, Event) --@Powerful Smash,n/a--
pUnit:FullCastSpellOnTarget(60868,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_29919', 618, 1)
end

function spell2_29919(pUnit, Event) --@Rend,n/a--
pUnit:FullCastSpellOnTarget(16509,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_29919', 15000, 1)
end

function Sorts_29919(pUnit, Event)
local choix_sorts_29919 = math.random(0, 2)
if choix_sorts_29919 == 0 then
pUnit:RegisterEvent('spell0_29919', 1, 1)
end
if choix_sorts_29919 == 1 then
pUnit:RegisterEvent('spell1_29919', 1, 1)
end
if choix_sorts_29919 == 2 then
pUnit:RegisterEvent('spell2_29919', 1, 1)
end
end

function mob29919_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_29919', math.random(1500, 3000), 1)
end

function mob29919_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob29919_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob29919_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(29919, 1, 'mob29919_Action')
RegisterUnitEvent(29919, 2, 'mob29919_Leave')
RegisterUnitEvent(29919, 3, 'mob29919_Kill')
RegisterUnitEvent(29919, 4, 'mob29919_Die')
